package com.ktjiaoyu.crm.repository;

import com.ktjiaoyu.crm.entity.Role;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @Author：南小楠
 */
public interface RoleRepository extends JpaRepository<Role,Long>{
    //根据角色名称进行模糊查询并分页
    public Page<Role> findRolesByRoleNameLike(String roleName, Pageable pageable);
}
